﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CPPEI.Coolzon.UI.Views
{
    /// <summary>
    /// Interaction logic for LoadingSolutionView.xaml
    /// </summary>
    public partial class LoadingSolutionView : View
    {
        /// <summary>
        /// 加载回来的方案信息
        /// </summary>
        public Metadata.Solution LoadedSolution { get; private set; }
        private string _solutionFile;

        public LoadingSolutionView(string solutionFile)
        {
            InitializeComponent();

            _solutionFile = solutionFile;
        }


        protected override void OnActive()
        {
            if (IsFirstActive)
            {
                LoadedSolution = Metadata.SolutionXmlProxy.Load(_solutionFile);
                Submit();
            }
        }
    }
}
